<?php

declare(strict_types=1);

namespace app\shop\validate\api\third;

use think\Validate;

class Wechat extends Validate
{


    protected $rule = [
        'mobile' => 'require|mobile|unique:user'
    ];

    protected $message  =   [
        'mobile.require'     => '手机号必须填写',
        'mobile.mobile'     => '手机号格式不正确',
        'mobile.unique'     => '手机号已被占用',
    ];


    protected $scene = [
        'changeMobile'  =>  ['mobile']
    ];
}
